/*
 * @Author: tkp
 * @Date: 2025-01-03 16:24:13
 */
import { authMenuAdd, authMenuTreeList, authMenuModify, authMenuDel, authSystemQuery } from '@/utils/api'
export class IndexBloc {
    queryForm = {
        menuName: '',
        systemId: '',
    }
    addPop = false
    rowItem = ''
    editPop = false
    sortPop = false
    tableData = []
    sysTeamType = []
    load(data) {
        authMenuTreeList(data).then(res => {
            this.tableData = res.data || []
        })
    }
    modify(data) {
        return authMenuModify(data)
    }
    add(data) {
        return authMenuAdd(data)
    }
    del(data) {
        return authMenuDel(data)
    }
    loadSystem() {
        let param = {
            enable: 1
        }
        authSystemQuery(param).then(res => {
            this.sysTeamType = res.data || []
        })
    }
}